<!DOCTYPE html>
<html>
<head lang="zh">
	<meta http-equiv="Content-Type" content="text/html ;charset=utf-8">
	<meta name="google" content="notranslate" />
	<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge"/>
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
	<meta name="csrf-token" content="{{ csrf_token() }}">
	<link rel="shortcut icon" type="image/x-icon" href="{{URL::asset('handan/images/logo-icon.png')}}" />
	<title>EAI交易圈</title>
	<link rel="stylesheet" href="{{ URL::asset('index/css/base.css') }}"/>
	<link rel="stylesheet" href="{{ URL::asset('index/css/index.css') }}"/>
	<link rel="stylesheet" href="{{URL::asset('handan/css/footer.css') }}"/>
	<link rel="stylesheet" href="{{ URL::asset('rankinglist/css/eject.css') }}"/>
	<style>
		/*遮挡层*/
		#mask {
			background-color: rgba(0,0,0,.28);
			position: fixed;
			left: 0;
			top: 0;
			z-index: 10;
			display: none;
			width: 100%;
			height: 100%;
		}
		/*弹层*/
		#tanCeng {
			width: 430px;
			height: 160px;
			position: fixed;;
			top: 0;
			bottom: 0;
			right: 0;
			left: 0;
			margin: auto;
			display: none;
			font-size: 16px;
			color: #20222c;
			text-align: center;
			line-height: 160px;
			background-color: #ffffff;
			border-radius: 6px;
			z-index: 20000;
		}
		#tanCeng span {
			display: block;
			height: 60px;
			margin-top: -19px;
		}
		#tanCeng button {
			width: 150px;
			height:30px;
			line-height: 30px;
			border-radius: 4px;
			background-color: #36b2ff;
			margin-top: 30px;
			text-align: center;
			color: #fff;
			border: 0 none;
		}

	</style>
</head>
<body>
<!-- 2017-05-09 顶部导航 超 start -->
	<header style="display: block;">
		<div class="j_header">
			<div class="top">
				<h1>
					<a href="/"></a>
				</h1>
				<nav>
					<ul>
						<li><a href="javascript:;">首页</a><i></i></li>
					<!--	<li><a href="{{url::asset('/hd')}}">行情</a><i></i></li> -->
						<li><a href="{{url::asset('/qianlibang')}}">分析师</a><i></i></li>
						<li><a href="{{url::asset('/news')}}">基本面</a><i></i></li>
                        <li><a href="{{url::asset('/pay')}}">充值</a></li>
						<li><a href="javascript:;">应用</a><i></i></li>
						<li><a href="{{url::asset('/recomm')}}">推荐榜</a><i></i></li>
					</ul>
				</nav>
				<i class="icon-menu" id="left-menu"></i>
			</div>
			<div class="nav-r">
				<ul>
				@if (session('eai'))
					<!--<li>
                            <a href="javascript:;" class="j_spr">
                                <img src="" alt="">
                                &nbsp;活动
                            </a>
                        </li>-->
<!--						<li>
							<a href="{{url('/help')}}" class="j_spr">
								<img src="{{ URL::asset('images/welcome_help.png') }}" alt="">
								&nbsp;帮助中心
							</a>
						</li>-->
						<li style="float:left;">
							<a href="{{url::asset('/home?type=user')}}">
							<!--<img src="{{ URL::asset('handan/images/user.png') }}" style="width:28px;height:28px;" />-->
								<span style="padding-left: 5px;">{{ session('eai')['username'] }}</span>
							</a>
						</li>
						<li>
						<!--                            <a href="{{url('loginout')}}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                                退出
                            </a>-->
							<a href="{{url('loginout')}}">
								退出
							</a>
						<!--                            <form id="logout-form" action="{{ url('loginout') }}" method="POST" style="display: none;">
                                {{ csrf_field() }}
								</form>-->
						</li>

				@else
					<!--<li>
                            <a href="javascript:;" class="j_sprs">
                                <img src="{{ URL::asset('index/images/sprs.png') }}" alt="">
                                &nbsp;活动
                            </a>
                        </li>-->
						<li>
							<a href="{{url('/help')}}" class="j_spr">
								<img src="{{ URL::asset('images/welcome_help.png') }}" alt="">
								&nbsp;帮助中心
							</a>
						</li>
						<li><a href="{{url::asset('/register')}}" style="font-size:16px;">注册</a></li>
						<li><a href="{{url::asset('/login')}}" style="font-size:16px;">登录</a></li>
					@endif
				</ul>
			</div>
		</div>
	</header>
<!-- 2017-05-09 顶部导航 超 end -->
<!-- 2017-05-09 轮播图改变  超  start -->
    <div class="banner item" id="index">
		<ul>
			<li style="display: block;" class="move j_one">
				<dl>
					<dt>EAI</dt>
					<dd class="line"> <i class="left"></i>
						<p>让交易变得更智能</p> <i class="right"></i>
					</dd>
				</dl>
			</li>
			<li class="j_two">
				<dl>
					<dt>EAI</dt>
					<dd class="line">
						<i class="left"></i>
						<p>让投资变得更简单</p>
						<i class="right"></i>
					</dd>
				</dl>
			</li>
			<li class="j_three">
				<dl>
					<dt>EAI</dt>
					<dd class="line">
						<i class="left"></i>
						<p>让交易变得更智能</p>
						<i class="right"></i>
					</dd>
				</dl>
			</li>
			<li class="j_four">
				<dl>
					<dt>EAI</dt>
					<dd class="line">
						<i class="left"></i>
						<p>让投资变得更简单</p>
						<i class="right"></i>
					</dd>
				</dl>
			</li>
		</ul>
		<span class="prev"></span>
		<span class="next"></span>
	</div>
<!-- 2017-05-09 轮播图改变  超  end -->
<!-- 2017-05-11 内容区域 超 start -->
    <div class="j_Title">
    	<div class="j_Title_content">
    		<h1>EAI 智能程序化系统</h1>
    		<div class="j_Number">
    			<div class="j_Number_left">
    				<div>
    					<img src="{{ URL::asset('index/images/run.png') }}"/>
    					<span>已为全球 <b class="timer" id="count-number" data-to="{{$counts}}" data-speed="1500"></b>名交易者</span>
    				</div>
    			</div>
    			<div class="j_Number_right">
    				<div>
    					<span>赚到<b class="b">$</b><b class="timer" id="count-number" data-to="{{$totalprofit}}" data-speed="1500"></b></span>
    					<img src="{{ URL::asset('index/images/money.png') }}"/>
    				</div>
    			</div>
    		</div>
    	</div>
    </div>
    <!-- 小标题 start -->
    <div class="j_min_title">
    	<div class="j_min_title_content">
    		<div class="j_left">
    			<h2>热门分析师</h2>
	    		<div class="left_tab">
	    			<a href="javascript:;" class="active">段位榜 <b>|</b></a>
	    			<a href="javascript:;">总盈利榜<b>|</b></a>
	    			<a href="javascript:;">胜率榜</a>
	    		</div>
    			<div class="right_can">
                        <a href="{{url::asset('/qianlibang')}}">查看更多</a>
    				<img src='{{ URL::asset("index/images/j_left.png") }}' alt="" />
    			</div>
    		</div>
    		<div class="j_right">
    			<h2>明日之星</h2>
    			<div class="right_can">
                        <a href="{{url::asset('/qianlibang')}}">查看更多</a>
    				<img src='{{ URL::asset("index/images/j_left.png") }}' alt="" />
    			</div>
    		</div>
    	</div>
    </div>
    <!-- 小标题 end -->
    <!-- 热门分析师  start -->
    <div class="j_Hot">
    	<div class="j_Hot_one">
    		<div class="j_Hot_left">
    			<!-- 段位榜 -->
    			<div id="j_content" class="j_con_tab" style="display:block;">
				    <ul>
						@if($gradedata)
							@foreach($gradedata as $gkey =>$gval)
								<li @if($gkey == 1) class="j_min_background" @endif>
									<a href="javascript:;" >
										<div class="j_first">
											<div class="j_left_top">
												<div>
													<span>
													<img src="@if($gval->photo) {{ $gval->photo }} @else {{URL::asset('/ucenter/images/head.png')}} @endif" alt="">
														@if($gval->isvip == '1')<img class="j_vip" src="{{ URL::asset('ucenter/images/v.png') }}" alt="">@endif
													</span>
													<b>{{$gval->username}}</b>
													<p>分析师</p>
													<div>{{$gval->final_point?round($gval->final_point,2):0}}</div>
													<h6>总盈点位</h6>
												</div>
											</div>
											<div class="j_left_bottom">
												<div>
													<div class="clearfloat">
														<span class="j_left_bottom_left">订阅人数</span>
														<span class="j_left_bottom_right">{{$gval->fansnum}}</span>
													</div>
													<div  class="clearfloat">
														<span class="j_left_bottom_left">胜率</span>
														<span class="j_left_bottom_right">{{$gval->winrate?round($gval->winrate,2):0}}%</span>
													</div>
													<div  class="clearfloat">
														<span class="j_left_bottom_left">近一周收益</span>
														<span class="j_left_bottom_right" style="color:#ff8201;">{{$gval->countmoney}}</span>
													</div>
													@if($gval->id != session('eai')['id'])
														<button>@if($gval->status == 1)编辑订阅@else订阅@endif</button>
													@endif
												</div>
											</div>
										</div>
										<div class="j_last">
											<div class="j_last_top">
												<div>
													<h2>订阅人数{{$gval->fansnum}}</h2>
													@if($gval->followerdata)
														@foreach($gval->followerdata as $followkey=>$followval)
															<span @if($followkey%3 == 1) class="j_margin_auto" @endif>
																<img src="@if($followval->photo) {{$followval->photo}} @else {{URL::asset('/ucenter/images/head.png')}} @endif" alt="">
															</span>
														@endforeach
													@endif
												</div>
											</div>
											<div class="j_last_bottom">
												<div>
													@if($gval->id != session('eai')['id'])
														@if($gval->status == 1)
															 <button onclick="subfollow(this)" analyst_id="{{$gval->id}}" analyst_username="{{$gval->username}}" status="{{$gval->status}}" direction="{{$gval->direction}}">编辑订阅</button>
														@else
															<button onclick="subfollow(this)" analyst_id="{{$gval->id}}" analyst_username="{{$gval->username}}" status="3" direction="3">订阅</button>
														@endif
													@endif
												</div>
											</div>
										</div>
									</a>
								</li>
							@endforeach
						@endif
				    </ul>
				</div>
				<!-- 总盈利榜 -->
				<div id="j_content" class="j_con_tab">
				    <ul>
						@if($singlepointdata)
							@foreach($singlepointdata as $gkey =>$gval)
								<li @if($gkey == 1) class="j_min_background" @endif>
									<a href="javascript:;" >
										<div class="j_first">
											<div class="j_left_top">
												<div>
													<span>
													<img src="@if($gval->photo) {{ $gval->photo }} @else {{URL::asset('/ucenter/images/head.png')}} @endif" alt="">
														@if($gval->isvip == '1')<img class="j_vip" src="{{ URL::asset('ucenter/images/v.png') }}" alt="">@endif
													</span>
													<b>{{$gval->username}}</b>
													<p>分析师</p>
													<div>{{$gval->final_point?round($gval->final_point,2):0}}</div>
													<h6>总盈点位</h6>
												</div>
											</div>
											<div class="j_left_bottom">
												<div>
													<div class="clearfloat">
														<span class="j_left_bottom_left">订阅人数</span>
														<span class="j_left_bottom_right">{{$gval->fansnum}}</span>
													</div>
													<div  class="clearfloat">
														<span class="j_left_bottom_left">胜率</span>
														<span class="j_left_bottom_right">{{$gval->winrate?round($gval->winrate,2):0}}%</span>
													</div>
													<div  class="clearfloat">
														<span class="j_left_bottom_left">进一周收益</span>
														<span class="j_left_bottom_right" style="color:#ff8201;">{{round($gval->countmoney,2)}}</span>
													</div>
													@if($gval->id != session('eai')['id'])
														<button>@if($gval->status == 1)编辑订阅@else订阅@endif</button>
													@endif
												</div>
											</div>
										</div>
										<div class="j_last">
											<div class="j_last_top">
												<div>
													<h2>订阅人数{{$gval->fansnum}}</h2>
													@if($gval->followerdata)
														@foreach($gval->followerdata as $followkey=>$followval)
															<span @if($followkey%3 == 1) class="j_margin_auto" @endif>
																<img src="@if($followval->photo) {{$followval->photo}} @else {{URL::asset('/ucenter/images/head.png')}} @endif" alt="">
															</span>
														@endforeach
													@endif
												</div>
											</div>
											<div class="j_last_bottom">
												<div>
													@if($gval->id != session('eai')['id'])
														@if($gval->status == 1)
															<button onclick="subfollow(this)" analyst_id="{{$gval->id}}" analyst_username="{{$gval->username}}" status="{{$gval->status}}" direction="{{$gval->direction}}">编辑订阅</button>
														@else
															<button onclick="subfollow(this)" analyst_id="{{$gval->id}}" analyst_username="{{$gval->username}}" status="3" direction="3">订阅</button>
														@endif
													@endif
												</div>
											</div>
										</div>
									</a>
								</li>
							@endforeach
						@endif
				    </ul>
				</div>
				<!-- 胜率榜 -->
				<div id="j_content" class="j_con_tab">
				    <ul>
						@if($winratedata)
							@foreach($winratedata as $gkey =>$gval)
								<li @if($gkey == 1) class="j_min_background" @endif>
									<a href="javascript:;" >
										<div class="j_first">
											<div class="j_left_top">
												<div>
													<span>
													<img src="@if($gval->photo) {{ $gval->photo }} @else {{URL::asset('/ucenter/images/head.png')}} @endif" alt="">
														@if($gval->isvip == '1')<img class="j_vip" src="{{ URL::asset('ucenter/images/v.png') }}" alt="">@endif
													</span>
													<b>{{$gval->username}}</b>
													<p>分析师</p>
													<div>{{$gval->final_point?round($gval->final_point,2):0}}</div>
													<h6>总盈点位</h6>
												</div>
											</div>
											<div class="j_left_bottom">
												<div>
													<div class="clearfloat">
														<span class="j_left_bottom_left">订阅人数</span>
														<span class="j_left_bottom_right">{{$gval->fansnum}}</span>
													</div>
													<div  class="clearfloat">
														<span class="j_left_bottom_left">胜率</span>
														<span class="j_left_bottom_right">{{$gval->winrate?round($gval->winrate,2):0}}%</span>
													</div>
													<div  class="clearfloat">
														<span class="j_left_bottom_left">进一周收益</span>
														<span class="j_left_bottom_right" style="color:#ff8201;">{{round($gval->countmoney,2)}}</span>
													</div>
													@if($gval->id != session('eai')['id'])
														<button>@if($gval->status == 1)编辑订阅@else订阅@endif</button>
													@endif
												</div>
											</div>
										</div>
										<div class="j_last">
											<div class="j_last_top">
												<div>
													<h2>订阅人数{{$gval->fansnum}}</h2>
													@if($gval->followerdata)
														@foreach($gval->followerdata as $followkey=>$followval)
															<span @if($followkey%3 == 1) class="j_margin_auto" @endif>
																<img src="@if($followval->photo) {{$followval->photo}} @else {{URL::asset('/ucenter/images/head.png')}} @endif" alt="">
															</span>
														@endforeach
													@endif
												</div>
											</div>
											<div class="j_last_bottom">
												<div>
													@if($gval->id != session('eai')['id'])
														@if($gval->status == 1)
															<button onclick="subfollow(this)" analyst_id="{{$gval->id}}" analyst_username="{{$gval->username}}" status="{{$gval->status}}" direction="{{$gval->direction}}">编辑订阅</button>
														@else
															<button onclick="subfollow(this)" analyst_id="{{$gval->id}}" analyst_username="{{$gval->username}}" status="3" direction="3">订阅</button>
														@endif
													@endif
												</div>
											</div>
										</div>
									</a>
								</li>
							@endforeach
						@endif
				    </ul>
				</div>
    		</div>
    		<!-- 右侧明日之星 start -->
    		<div class="j_Hot_right">
    			<div class="j_Hot_right_one">
    				<ul>
						@if($nextstartdata)
							@foreach($nextstartdata as $nkey=>$nval)
								<li>
								<span>
									<img src="@if($nval->photo) {{$nval->photo}} @else {{URL::asset('/ucenter/images/head.png')}} @endif" alt="">
								</span>
									<b>{{$nval->username}}</b>
									<p><img src="{{ URL::asset('images/vip@tomorrow.png') }}" alt=""></p>
									<a href="javascript:;"><b>{{round($nval->final_point,2)}}</b>总盈利点位</a>
								</li>
							@endforeach
						@endif
    				</ul>
    			</div>
    		</div>
    		<!-- 右侧明日之星 end -->
    	</div>
    </div>
    <!-- 热门分析师  end -->
    <!-- 交易动态 start -->
    <div class="j_min_title">
    	<div class="j_min_title_content">
    		<div class="j_left">
    			<h2>交易动态</h2>
	    		<div class="left_tab">
	    			<!-- <a href="javascript:;" class="active">段位榜 <b>|</b></a>
	    			<a href="javascript:;">单均盈利榜<b>|</b></a>
	    			<a href="javascript:;">胜率榜</a> -->
	    		</div>
    			{{--<div class="right_can">
    				<a href="javascript:;">查看更多</a>
    				<img src='{{ URL::asset("index/images/j_left.png") }}' alt="" />
    			</div>--}}
    		</div>
    		<div class="j_right">
    			<h2>收益排行榜</h2>
    			<div class="right_can">
    				<a href="{{URL('/qianlibang')}}">查看更多</a>
    				<img src='{{ URL::asset("index/images/j_left.png") }}' alt="" />
    			</div>
    		</div>
    	</div>
    </div>

    <div class="j_Master">
    	<div class="j_Master_one">
    		<div class="j_Master_left">
                    
    			<ul id="j_Master_box" class="j_Master_left">
					
				</ul>
    		</div>
			<!-- 收益排行榜 -->
    		<div class="j_Hot_right">
    			<div class="j_Hot_right_one">
    				<ul>
						@if($analystlistdata)
							@foreach($analystlistdata as $akey=>$aval)
								<li>
									<span>
										<img src="@if($aval->photo) {{$aval->photo}} @else {{URL::asset('/ucenter/images/head.png')}}@endif" alt="">
									</span>
									<b>{{$aval->username}}</b>
									<p><img src="{{ URL::asset('images/vip@greatmaster.png') }}" alt=""></p>
									<a href="javascript:;"><b>{{round($aval->final_point,2)}}</b>总盈利点位</a>
								</li>
							@endforeach
						@endif
    				</ul>
    			</div>
    		</div>
    	</div>
    </div>
    <!-- 交易动态 end -->
<!-- 2017-05-11 内容区域 超 end -->
<!-- 2017-05-19 广告位 start -->
<!-- <div class="minbanner">
	<div>
		<a href="{{ URL('active') }}">
			<img src="{{ URL::asset('index/images/minbanner.png') }}" alt="" />
		</a>
		<div>
			<input type="text" id="val" readonly value="八千万分析策略大赛邀您一起参加！！！ http://www.eaifx.com/active"/>
			<button id="cp-btn" data-clipboard-action="copy" data-clipboard-target="#val">复制</button>
			<span>复制完链接，你可以通过QQ、微信、E-MAIL等发送给你的小伙伴</span>
		</div>
	</div>
</div> -->
<!-- 2017-05-19 广告位 end -->

@include('bangdan.eject')

<!-- 遮挡层 -->
<div id="mask"></div>
<!-- 申请体验账户弹窗 -->
<div id="tanCeng">
	<span></span>
	<a href='/authenticate?id=tiyan' style='cursor:pointer;color:#3b9ce0;'>
		<button onclick="perfectInfo()" style="display:none;">完善资料</button>
	</a>
</div>
<script src="{{URL::asset('public_js/jquery-3.2.1.min.js')}}"></script>
<script src="{{ URL::asset('js/layer/layer.js') }}"></script>
<script src="{{URL::asset('public_js/clipboard.min.js')}}"></script>
<script src="{{ URL::asset('index/js/welcome.js')}}"></script>
<script>
	var aid       = 0;
	var analyst_username = '';
	var status    = 3;//是否订阅
	var direction = 3;//订阅方向
	// 点击订阅按钮，弹出协议层
	function subfollow(obj){
		var top = $(document).scrollTop();
		$(document).on('scroll.unable',function (e) {
			$(document).scrollTop(top);
		})
		var islogin = "<?php echo Session('eai')['tel']?>";
		if(!islogin){
			//layer.msg('请先<a href="{{ url('/login') }}">登录</a>！');
			showCeng();
			$('#tanCeng>a>button').hide();
			$("#tanCeng").css({'width':'250px','height':'80px','line-height':'80px'}).html('请先<a href="{{ url('/login') }}" style="cursor:pointer;color:#3b9ce0;font-size: 20px;">登录</a>！');
			return false;
		}
		var infofinish = '{{$infofinish}}';
		if(infofinish == 1){
			var gowanshan = "{{url('/authenticate?id=info')}}";
			$('.popUp').hide();
			showCeng();
			$('#tanCeng>a>button').hide();
			$("#tanCeng>span").css({'margin-top':'2px'}).html("您未完善资料，<a href='"+gowanshan+"' style='cursor:pointer;color:#3b9ce0;'>请完善资料!</a>");
			return false;
		}else{
			aid              = $(obj).attr('analyst_id');
			analyst_username = $(obj).attr('analyst_username');
			status           = $(obj).attr('status');
			direction        = $(obj).attr('direction');
			if(this.innerHTML == "订阅") {
				var cancleBtn=$(".foot_right>input");
				cancleBtn.css({"visibility":"hidden"});
			}
			if(this.innerHTML == "编辑订阅") {
				var thisBtn=this;
			}
			if(status == 1){
				$('#gendancancle').show();
			}else{
				$('#gendancancle').hide();
			}
			$('#mask').css({'display':'block'});
			$('#popUp').css({'display':'block'})
		}
	}
	// 点击按钮，关闭层
	$(".close").click(function(){
		$(document).unbind("scroll.unable");
		$('#mask').css({'display':'none'});
		$('#popUp').css({'display':'none'});
	})
	function isIE() { //ie?
		if (!!window.ActiveXObject || "ActiveXObject" in window) {
			window.location.href = '{{url('error')}}';
			return true;
		} else {
			return false;
		}
	}
	isIE()

	var Imgurl_1 = '{{ URL::asset("images/header_help.png") }}',
		Imgurl_2 = '{{ URL::asset("images/welcome_help.png") }}',
		j_header = '{{ URL::asset("ucenter/images/head.png") }}',
		j_header_v = '{{ URL::asset("ucenter/images/v.png") }}',
		j_greatmaster = '{{ URL::asset("images/vip@greatmaster.png") }}',
		j_tomorrow = '{{ URL::asset("images/vip@tomorrow.png") }}';
	var  url_one = "{{ url('/dealTrends') }}";
	// 遮挡层
	function l_Mask(){
		var div_mask=$('#mask');
		var width=document.body.scrollWidth+'px';
		var height=document.body.scrollHeight+'px';
		div_mask.css({'width':width,'height':height,'display':'block'});
		div_mask.show();
	}
	// 显示
	function showCeng(){
		var div_mask=$('#mask');
		var width=document.body.scrollWidth+'px';
		var height=document.body.scrollHeight+'px';
		div_mask.css({'width':width,'height':height,'display':'block'});
		$('#mask').show();
		$("#tanCeng").show();
	}
	// 隐藏
	function hideCeng(){
		var div_mask=$('#mask');
		var width=document.body.scrollWidth+'px';
		var height=document.body.scrollHeight+'px';
		div_mask.css({'width':width,'height':height,'display':'block'});
		$('#mask').hide();
		$("#tanCeng").hide();
	}
	// 登录提示弹层
	function loginCeng(){
		var div_mask=$('#mask');
		var width=document.body.scrollWidth+'px';
		var height=document.body.scrollHeight+'px';
		div_mask.css({'width':width,'height':height,'display':'block'});
		$('#mask').show();
		$("#tanCeng").show();
		$("#tanCeng > span").html('您未登录,<a href="{{ url('/login') }}" style="color:#3b9ce0">请先登录!</a>');
		$("#tanCeng > button").hide();
		$("#tanCeng").css({'width':'250px','height':'80px','line-height':'80px'});
		$("#tanCeng > span").css({'margin-top':'0'});
	}
</script>
@include('layout.footer')

